package cn.gok.springbootlearning.base.dao;

import cn.gok.springbootlearning.base.entity.BaseEntity;

import java.util.Date;
import java.util.List;

/**
 * @ClassName BaseMapper
 * @Description TODO
 * @Author HP
 * @Date 11:39 2022/7/26
 * @Version 1.0
 **/


public interface BaseMapper<T extends BaseEntity> {
    List<T> list();

    int save(T t);

    int delete(Integer id);

    int update(T t);

    T findById(Integer id);
}
